// https://nuxt.com/docs/api/configuration/nuxt-config

export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  devtools: { enabled: true },
  ssr: true,

  devServer: {
    port: 9001
  },

  nitro: {
    compressPublicAssets: true,
  },

  experimental: {
    payloadExtraction: true,
    writeEarlyHints: true,
  },

  app: {
    pageTransition: { name: 'page', mode: 'out-in' },
    head: {
      // SEO优化
      title: "Lin | website",
      charset: 'utf-8',
      meta: [
        { 
          name: "description",
          content: "website, width=device-width, initial-scale=0, user-scalable=yes,shrink-to-fit=no"
        },

        { 
          name: "keyword",
          content: "Lin | website, width=device-width, initial-scale=0, user-scalable=yes,shrink-to-fit=no" 
        }
      ],

      // 网页图标
    },
    baseURL: process.env.BASE_URL  || '/'
  },

  plugins: [
    {src: '@/plugins/gsap.js', mode: 'client'},
    {src: '@/plugins/element-icons.ts', mode: 'client'},
  ],

  modules: [
    '@element-plus/nuxt',
  ],

  css: [
    '@/assets/css/Global.css',
    '@/assets/css/Main.css',
  ],

  googleFonts: {
    families: {
      'Noto Sans SC': [100, 200, 300, 400, 500, 600, 700, 800],  // 中文无衬线字体
      'Noto Serif SC': true , // 中文衬线体
    }
  },


  






})
